/**
 * @author zyj
 * @date 2022年06月10日 11:21
 * 消费者
 */
public class Customer extends Thread{
    private KFC kfc;

    public Customer(String name,KFC kfc){
        super(name);
        this.kfc = kfc;
    }

    @Override
    public void run() {
        while (true) {
            kfc.cus();
            try {
                sleep(50);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
    }
}
